﻿#ifndef DIALOGVALID_H
#define DIALOGVALID_H
#include "Head.h"
#include <QDialog>
#include "GlobalVar.h"

namespace Ui {
class DialogValid;
}

class DialogValid : public QDialog
{
    Q_OBJECT

public:
    explicit DialogValid(QWidget *parent = 0);
    ~DialogValid();

    static bool IsValid();
    static bool IsValidImp(QString key);

private slots:
    void on_buttonBox_accepted();

private:
    Ui::DialogValid *ui;

    // QWidget interface
protected:
    virtual void closeEvent(QCloseEvent *event) override;
};

#endif // DIALOGVALID_H
